package entity;

/**
 * 订单详情类
 */
public class OrderInfo {
    private int id;//详情id
    private int ordersID;//订单id
    private int goodsID;//商品ID
    private int quantity;//购买的商品数量
    private double money;//单个订单的金额

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getOrdersID() {
        return ordersID;
    }

    public void setOrdersID(int ordersID) {
        this.ordersID = ordersID;
    }

    public int getGoodsID() {
        return goodsID;
    }

    public void setGoodsID(int goodsID) {
        this.goodsID = goodsID;
    }

    public int getQuantity() {
        return quantity;
    }

    public void setQuantity(int quantity) {
        this.quantity = quantity;
    }

    public double getMoney() {
        return money;
    }

    public void setMoney(double money) {
        this.money = money;
    }

    @Override
    public String toString() {
        return "OrderInfo{" +
                "id=" + id +
                ", ordersID=" + ordersID +
                ", goodsID=" + goodsID +
                ", quantity=" + quantity +
                ", money=" + money +
                '}';
    }
}
